import { RouteRecordRaw, RouterView } from 'vue-router'

import { redirectPath } from '../help'

export const routes: RouteRecordRaw[] = [
  {
    path: '/admin/teacher',
    component: RouterView,
    meta: { title: '教师管理', auth: ['admin-teacher-list'] },
    redirect: redirectPath,
    children: [
      {
        path: '/admin/teacher/list',
        component: () => import('@/views/admin/teacher/list.vue'),
        meta: { title: '教师管理', auth: ['admin-teacher-list'] }
      }
    ]
  }
]

export default routes
